package com.winit.openapi.sms;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import com.winit.openapi.controller.BaseController;
import com.winit.openapi.model.RequestMsg;
import com.winit.openapi.model.ResponseMsg;
import com.winit.sms.spi.wallet.onlinerecharge.RechargeChannelService;
import com.winit.sms.spi.wallet.onlinerecharge.vo.RechargeChannelVo;

/**
 * 
 * 钱包消费服务
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * xiangui.fang 	1.0  		2016年2月22日 	Created
 *
 * </pre>
 * @since 1.
 */
@Controller
@RequestMapping("/sms/rechargeChannel")
public class RechargeChannelController extends BaseController {

    private static Logger          logger = LoggerFactory.getLogger(CashAccountController.class);

    @Resource
    private RechargeChannelService rechargeChannelService;

    /**
     * 
     * 现金账户，信用账户验证
     * @return
     */
    @RequestMapping("/queryRechargeChannel")
    public String queryRechargeChannel(@ModelAttribute RequestMsg requestMsg, @ModelAttribute ResponseMsg responseMsg) {
        List<RechargeChannelVo> list = rechargeChannelService.queryRechargeChannel();
        responseMsg.setData(list);
        return SUCCESS;
    }

}
